<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>stm32f4_blink_led: D:/123/stm32f4_blink_led-1.2.2-120323/hdr/hdr_bitband.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">stm32f4_blink_led
   &#160;<span id="projectnumber">1.2.2-120323</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">D:/123/stm32f4_blink_led-1.2.2-120323/hdr/hdr_bitband.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="hdr__bitband_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00007"></a>00007 <span class="comment">/******************************************************************************</span>
<a name="l00008"></a>00008 <span class="comment">* chip: ARMv7-M(E) (Cortex-M3 / Cortex-M4)</span>
<a name="l00009"></a>00009 <span class="comment">* compiler: arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.6.2</span>
<a name="l00010"></a>00010 <span class="comment">*   20110921 (release) [ARM/embedded-4_6-branch revision 182083]</span>
<a name="l00011"></a>00011 <span class="comment">******************************************************************************/</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef HDR_BITBAND_H_</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define HDR_BITBAND_H_</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 <span class="comment">/*</span>
<a name="l00017"></a>00017 <span class="comment">+=============================================================================+</span>
<a name="l00018"></a>00018 <span class="comment">| global definitions</span>
<a name="l00019"></a>00019 <span class="comment">+=============================================================================+</span>
<a name="l00020"></a>00020 <span class="comment">*/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#define BITBAND_SRAM_REF                    0x20000000</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define BITBAND_SRAM_BASE                   0x22000000</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#define BITBAND_PERIPH_REF                  0x40000000</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define BITBAND_PERIPH_BASE                 0x42000000</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="comment">/*</span>
<a name="l00029"></a>00029 <span class="comment">+=============================================================================+</span>
<a name="l00030"></a>00030 <span class="comment">| strange variables</span>
<a name="l00031"></a>00031 <span class="comment">+=============================================================================+</span>
<a name="l00032"></a>00032 <span class="comment">*/</span>
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="preprocessor">#define bitband_t *(volatile unsigned long*)</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="comment">/*</span>
<a name="l00037"></a>00037 <span class="comment">+=============================================================================+</span>
<a name="l00038"></a>00038 <span class="comment">| macros</span>
<a name="l00039"></a>00039 <span class="comment">+=============================================================================+</span>
<a name="l00040"></a>00040 <span class="comment">*/</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="preprocessor">#define m_BITBAND_SRAM(address, bit)        (BITBAND_SRAM_BASE + (((unsigned long)address) - BITBAND_SRAM_REF) * 32 + (bit) * 4)</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#define m_BITBAND_PERIPH(address, bit)      (BITBAND_PERIPH_BASE + (((unsigned long)address) - BITBAND_PERIPH_REF) * 32 + (bit) * 4)</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00045"></a>00045 <span class="comment">/******************************************************************************</span>
<a name="l00046"></a>00046 <span class="comment">* END OF FILE</span>
<a name="l00047"></a>00047 <span class="comment">******************************************************************************/</span>
<a name="l00048"></a>00048 <span class="preprocessor">#endif </span><span class="comment">/* HDR_BITBAND_H_ */</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 23 2012 00:11:20 for stm32f4_blink_led by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
